﻿namespace WMS6.Web.TransportMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="TrackingDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough]
    public class TrackingDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AcceptModeField;
        [OptionalField]
        private string BolIDField;
        [OptionalField]
        private string CarrierIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DeliveryOrderIDField;
        [OptionalField]
        private string DriverIDField;
        [OptionalField]
        private string DriverPhoneField;
        [OptionalField]
        private string EquipmentLicenceField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private string RoadInfoField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private DateTime TrackingDateField;
        [OptionalField]
        private string TrackingIDField;
        [OptionalField]
        private string TrackingLocField;
        [OptionalField]
        private string Udf10Field;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string Udf6Field;
        [OptionalField]
        private string Udf7Field;
        [OptionalField]
        private string Udf8Field;
        [OptionalField]
        private string Udf9Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string AcceptMode
        {
            get
            {
                return this.AcceptModeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AcceptModeField, value))
                {
                    this.AcceptModeField = value;
                    this.RaisePropertyChanged("AcceptMode");
                }
            }
        }

        [DataMember]
        public string BolID
        {
            get
            {
                return this.BolIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BolIDField, value))
                {
                    this.BolIDField = value;
                    this.RaisePropertyChanged("BolID");
                }
            }
        }

        [DataMember]
        public string CarrierID
        {
            get
            {
                return this.CarrierIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierIDField, value))
                {
                    this.CarrierIDField = value;
                    this.RaisePropertyChanged("CarrierID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string DeliveryOrderID
        {
            get
            {
                return this.DeliveryOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DeliveryOrderIDField, value))
                {
                    this.DeliveryOrderIDField = value;
                    this.RaisePropertyChanged("DeliveryOrderID");
                }
            }
        }

        [DataMember]
        public string DriverID
        {
            get
            {
                return this.DriverIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DriverIDField, value))
                {
                    this.DriverIDField = value;
                    this.RaisePropertyChanged("DriverID");
                }
            }
        }

        [DataMember]
        public string DriverPhone
        {
            get
            {
                return this.DriverPhoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DriverPhoneField, value))
                {
                    this.DriverPhoneField = value;
                    this.RaisePropertyChanged("DriverPhone");
                }
            }
        }

        [DataMember]
        public string EquipmentLicence
        {
            get
            {
                return this.EquipmentLicenceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EquipmentLicenceField, value))
                {
                    this.EquipmentLicenceField = value;
                    this.RaisePropertyChanged("EquipmentLicence");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public string RoadInfo
        {
            get
            {
                return this.RoadInfoField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RoadInfoField, value))
                {
                    this.RoadInfoField = value;
                    this.RaisePropertyChanged("RoadInfo");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public DateTime TrackingDate
        {
            get
            {
                return this.TrackingDateField;
            }
            set
            {
                if (!this.TrackingDateField.Equals(value))
                {
                    this.TrackingDateField = value;
                    this.RaisePropertyChanged("TrackingDate");
                }
            }
        }

        [DataMember]
        public string TrackingID
        {
            get
            {
                return this.TrackingIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TrackingIDField, value))
                {
                    this.TrackingIDField = value;
                    this.RaisePropertyChanged("TrackingID");
                }
            }
        }

        [DataMember]
        public string TrackingLoc
        {
            get
            {
                return this.TrackingLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TrackingLocField, value))
                {
                    this.TrackingLocField = value;
                    this.RaisePropertyChanged("TrackingLoc");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf10
        {
            get
            {
                return this.Udf10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf10Field, value))
                {
                    this.Udf10Field = value;
                    this.RaisePropertyChanged("Udf10");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string Udf6
        {
            get
            {
                return this.Udf6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf6Field, value))
                {
                    this.Udf6Field = value;
                    this.RaisePropertyChanged("Udf6");
                }
            }
        }

        [DataMember]
        public string Udf7
        {
            get
            {
                return this.Udf7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf7Field, value))
                {
                    this.Udf7Field = value;
                    this.RaisePropertyChanged("Udf7");
                }
            }
        }

        [DataMember]
        public string Udf8
        {
            get
            {
                return this.Udf8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf8Field, value))
                {
                    this.Udf8Field = value;
                    this.RaisePropertyChanged("Udf8");
                }
            }
        }

        [DataMember]
        public string Udf9
        {
            get
            {
                return this.Udf9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf9Field, value))
                {
                    this.Udf9Field = value;
                    this.RaisePropertyChanged("Udf9");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

